package com.example.studentportrait.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.studentportrait.domain.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


/**
 * 用户表(User)表数据库访问层
 *
 *  @author 陈海瑞
 *  @since 2025-1-11 16:52:54
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Override
    int insert(User entity);
    @Select("SELECT * FROM user WHERE account =#{account}")
    User selectByAccount(String account);
}
